/*
package com.yylending.las.personal.loan;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.yyfax.common.adapter.BaseRecycleAdapter;
import com.yyfax.common.recyclerview.IViewHolder;
import com.yyfax.common.recyclerview.OnItemClickListener;
import com.yylending.las.R;

import butterknife.BindView;
import butterknife.ButterKnife;

*/
/**
 * Adapter:我的借款
 * Created by ying_he on 2017/6/5.<br>
 * Copyright  2017 www.yylending.com. All Rights Reserved.<br><br>
 *//*


public class LoanListAdapter extends BaseRecycleAdapter<LoanListModel.Loan> {
    private OnItemClickListener mOnItemClickListener;

    public LoanListAdapter(OnItemClickListener onItemClickListener) {
        super();
        this.mOnItemClickListener = onItemClickListener;
    }

    @Override
    public IViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_item_loan_list, parent, false);
        return new ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(IViewHolder holder, int position) {
//        LoanListModel.Loan loan = getDataSet().get(position);
//        final ViewHolder viewHolder = (ViewHolder) holder;
//        viewHolder.bindView(loan);
//        viewHolder.itemView.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                mOnItemClickListener.onItemClick(viewHolder.getAdapterPosition() - 1, null, v);
//            }
//        });
    }

    @Override
    public int getItemCount() {
//        return getCount();
        return 10;
    }

    static class ViewHolder extends IViewHolder {
        View itemView;
        @BindView(R.id.right_arrow_iv)
        ImageView mRightArrowIv;
        @BindView(R.id.flag_overdue_iv)
        ImageView mFlagOverdueIv;
        @BindView(R.id.label_loan_date_tv)
        TextView mLabelLoanDateTv;
        @BindView(R.id.loan_date_tv)
        TextView mLoanDateTv;
        @BindView(R.id.label_loan_sum_tv)
        TextView mLabelLoanSumTv;
        @BindView(R.id.loan_sum_tv)
        TextView mLoanSumTv;
        @BindView(R.id.label_loan_status_tv)
        TextView mLabelLoanStatusTv;
        @BindView(R.id.loan_status_tv)
        TextView mLoanStatusTv;

        ViewHolder(View itemView) {
            super(itemView);
            this.itemView = itemView;
            ButterKnife.bind(this, itemView);
        }

        void bindView(LoanListModel.Loan loan) {

        }
    }
}
*/
